package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.EducationUndertakingRecordDao;
import com.site.wisdom_construction.entity.personnelModule.EducationUndertakingRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/4/19
 * @Description
 */
@Service
public class EducationUndertakingRecordService implements EducationUndertakingRecordDao {
    @Autowired
    private EducationUndertakingRecordDao educationUndertakingRecordDao;

    @Override
    public int insertEducationUndertakingRecord(Map map) {
        return educationUndertakingRecordDao.insertEducationUndertakingRecord(map);
    }

    @Override
    public int deleteEducationUndertakingRecord(Map map) {
        return educationUndertakingRecordDao.deleteEducationUndertakingRecord(map);
    }

    @Override
    public int updateEducationUndertakingRecord(Map map) {
        return educationUndertakingRecordDao.updateEducationUndertakingRecord(map);
    }

    @Override
    public List<EducationUndertakingRecord> findEducationUndertakingRecordByPage(Map map) {
        return educationUndertakingRecordDao.findEducationUndertakingRecordByPage(map);
    }

    @Override
    public long Total(Map map) {
        return educationUndertakingRecordDao.Total(map);
    }

    @Override
    public EducationUndertakingRecord findEducationUndertakingRecordById(Map map) {
        return educationUndertakingRecordDao.findEducationUndertakingRecordById(map);
    }

    @Override
    public List<EducationUndertakingRecord> findEducationUndertakingRecordByWorkerCard(Map map) {
        return educationUndertakingRecordDao.findEducationUndertakingRecordByWorkerCard(map);
    }

    @Override
    public List<EducationUndertakingRecord> findEducationUndertakingRecordByManagerialId(Map map) {
        return educationUndertakingRecordDao.findEducationUndertakingRecordByManagerialId(map);
    }

    @Override
    public long TotalByManagerialId(Map map) {
        return educationUndertakingRecordDao.TotalByManagerialId(map);
    }
}
